<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			body{
				height: 30000px;
			}
		</style>
		<script>
			function getPos(){
				alert(window.outerHeight+"*"+window.outerWidth);
				var x=window.screenLeft||window.screenX;
				var y=window.screenTop||window.screenY;
				alert("左顶点：x="+x+",y="+y);
				window.scrollTo(0,12000);
			}
			function winClose(){
				if(confirm("您真的要关闭吗？"))
					window.close();
				else
					window.open("https://www.baidu.com","baidu","height=300px,width=200px");
			}
		</script>
	</head>
	<body>
		<input type="button" value="获得高度和左顶点的位置" onclick="getPos()"/>
		
		<input type="button" value="close" onclick="winClose()"/>
		
		<a href="win2.html">去win2</a>
		
		<a href="win3.html">去win3</a>
	</body>
</html>
